package Month5;

public class A20250515Leetcode
{
    public static void main(String[] args)
    {
        int[][] moves = {{0,2},{0,1},{2,1}};
        int map[][] = new int[3][3];

        for(int i = 0 ; i <moves.length;i++)
        {
            if(i%2==0)
            {
//                System.out.println(moves[i][0]);
//                System.out.println(moves[i][1]);

                map[moves[i][0]][moves[i][1]]++;

            }
            else
            {
                map[moves[i][0]][moves[i][1]]--;
            }

        }
        int count1 = 0;
        for(int i = 0 ; i < 3;i++)
        {
            for (int j = 0; j < 3; j++)
                if (map[j][i] != 0)
                {
                    System.out.print (map[j][i]);
                    count1 += map[j][i];
                    System.out.println();

                }
        }
        System.out.println();
        System.out.println(count1);

    }
}
